package com.example;

import org.eclipse.jgit.transport.SshSessionFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.context.annotation.Configuration;

import java.net.URL;

@EnableConfigServer
@Configuration
@EnableAutoConfiguration
@EnableDiscoveryClient
public class ConfigServerApplication {
    public static void main(String[] args) {
        //URL res = ConfigServerApplication.class.getClassLoader().getResource( "keys/id_rsa" );
        //String path = res.getPath();
        //SshSessionFactory.setInstance( new FixedSshSessionFactory( path ) );
        SpringApplication.run(ConfigServerApplication.class, args);
    }
}
